package com.zcl.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.dao.Loss;
import com.zcl.mapper.LossMapper;

@Service
public class LossService {
	@Autowired
	LossMapper lossMapper;
	/*
	 * 查询事故
	 */
	public List<Map<String, String>> lossQuery(){
		return lossMapper.lossQuery();
	}
	
	/*
	 * 查询事故详情
	 */
	public Loss lossSuveryInfo(Map<String, String> map) {
		return lossMapper.lossSuveryInfo(map);
	}
	
	/*
	 * 事故全文搜索
	 */
	public List<Map<String, String>> lossGlobalQuery(Map<String, String> map) {
		return lossMapper.lossGlobalQuery(map);
	}
	
	/*
	 * 添加事故信息
	 */
	public void lossAdd(Map<String, String> map) {
		lossMapper.lossAdd(map);
	}
	
	/*
	 * 删除事故信息
	 */
	public void lossDelete(Map<String, String> map) {
		lossMapper.lossDelete(map);
	}

	/*
	 * 事故信息修改
	 */
	public void lossRevise(Map<String, String> map) {
		lossMapper.lossRevise(map);
	}

	/*
	 * 事故高级搜索
	 */
	public List<Map<String, String>> lossAdvancedQuery(Map<String, String> map) {
		return lossMapper.lossAdvancedQuery(map);
	}
}
